<template>
    <div class="content">
        <p style="font-size:20px;padding-left: 40px;">学员表达课程学习情况</p>
        <el-table :data="lectureData" stripe style="width: 100%">
            <el-table-column prop="title" label="课程名称" width="360">
            </el-table-column>
            <el-table-column prop="duration" label="上课时间" width="180">
            </el-table-column>
            <el-table-column prop="address" label="地址">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
import { fetchStudentLectures } from "api/remoteSearch"
import { mapGetters } from 'vuex';
export default {
    data() {
        return {
            lectureData: []
        }
    },
    computed: {
        ...mapGetters([
            'user_id',
            'roles'
        ])
    },
    created() {
        let vm = this;
        fetchStudentLectures(this.user_id).then(res => {
            if (res.data.status == "success") {
                vm.lectureData = res.data.lectures;
            } else {

            }
        }).catch(err => {

        })

        // vm.axios.post(vm.url.acid + '&do=userLectureList', { id: 'Fred' })
        //     .then(function (res) {
        //         if(res.status=200){
        //             if(res.data.status=="success"){
        //                 vm.lectureData=res.data.data;
        //             }else{

        //             }
        //         }
        //         console.log(res);
        //     })
        //     .catch(function (err) {
        //         console.log(err);
        //     });
    }

}
</script>
<style>

</style>
